function initSytemModel(para) {
  class SystemModel {
    constructor(para) {
      this.model = para.model
      this.pixelRatio = para.pixelRatio
      this.screenWidth = para.screenWidth
      this.screenHeight = para.screenHeight
      this.windowWidth = para.windowWidth
      this.windowHeight = para.windowHeight
      this.language = para.language
      this.version = para.version
      this.system = para.system
      this.platform = para.platform
      this.SDKVersion = para.SDKVersion
      this.batteryLevel = para.batteryLevel
      this.benchmarkLevel = para.benchmarkLevel
      this.brand = para.brand
      this.errMsg = para.errMsg
      this.fontSizeSetting = para.fontSizeSetting
      this.platform = para.platform
      this.statusBarHeight = para.statusBarHeight
      if(!para.statusBarHeight){
        if (para.model == 'iPhone X'){
          this.statusBarHeight = 44
        } else {
          this.statusBarHeight = 20
        }
      }
    }
  }

  let model = new SystemModel(para)
  return model
}

module.exports.initSytemModel = initSytemModel